﻿namespace ImoviesBlazor.Server.Helpers
{
    /// <summary>
    /// html工具类
    /// </summary>
    public static class HtmlUtils
    {
        /// <summary>
        /// 获取html源文本
        /// </summary>
        /// <param name="url">url地址</param>
        /// <returns>html源代码</returns>
        public static async Task<string> GetHtmlTxt(string url)
        {
            return await (new HttpClient()).GetStringAsync(url);
        }
    }
}
